<?php /* @var $view Model3_View */ ?>
<?php
    $pet = $view->pet;
    if( $pet != false)
    {
        // aqui se debe poner el perfil de la mascota
        ?>
<div id="contenedor">
    <div class="span-6 colborder">
        <div style="height: 187px; width: 250px";>
            <?php echo $view->ManagerImages()->thumbImg($pet['image'],'Foto','Foto','','250','187');?>
        </div>
        <br>
        <hr>
        <div class="span-2">Tipo:</div>
        <div class="span-4 last">
            <?php
                switch ($pet->type){
                    case MN_Pets::TYPE_DOG:echo "Perro";break;
                    case MN_Pets::TYPE_CAT:echo "Gato";break;
                    case MN_Pets::TYPE_RABBIT:echo "Conejo";break;
                    case MN_Pets::TYPE_OTHER:echo "Otro";break;
                }?>
        </div>
        
        <div class="span-2">  Edad:  </div>
        <div class="span-4 last"> <?php echo $pet->age;?>  </div>
        
        <div class="span-2">  Sexo:  </div>
        <div class="span-4 last"> <?php switch ($pet->sex){
                case MN_Pets::GENDER_MALE: echo "Macho";break;
                case MN_Pets::GENDER_FEMALE: echo "Hembra";break;
                    }?> 
        </div>
    
        <div class="span-2">  Pedigree:  </div>
        <div class="span-4 last"> <?php echo $pet->pedigree==MN_Pets::PEDIGREE_YES?'Si':'No';?>  </div>
        
        <div class="span-2">  Raza:  </div>
        <div class="span-4 last"> <?php $view->PrintBreeds()->printBreedby($pet->breed); ?> </div>
        
        <div class="span-2">  Color:  </div>
        <div class="span-4 last"> <?php echo $pet->color;?> </div>
        
        <div class="span-2">  Peso:  </div>
        <div class="span-4 last"> <?php echo $pet->weigth;?> </div>
        
    <?php
     if($pet->status == MN_Pets::STATUS_SALE)
     {?>
         <div class="span-2">  Precio:  </div>
        <div class="span-4 last"> <?php echo $pet->price;?> </div>
      <?php
     }
    ?>
    </div>
    <div class="span-9">
        <div>
            <h2><?php echo $pet->name;?></h2>
            <h3><?php switch ($pet->status) {case MN_Pets::STATUS_BOYFRIEND: echo "Busca Pareja";break;case MN_Pets::STATUS_ADOPTION: echo "En Adopcion"; break;case MN_Pets::STATUS_SALE: echo "En Venta";break;case MN_Pets::STATUS_TO_VISIT: echo "Ando de Paseo por Aqui";break;}?></h3>
            <h3><i> <?php echo $pet->description;?></i></h3>
            <h4><?php echo $pet->large_description;?></h4>
        </div>
   
    </div>
    
    
</div>
<hr>
<div >
    <div class="span-13">
        
        <?php 
        
        foreach ($view->images as $pic) {
            echo '<span style="padding: 5px;">';
           echo $view->ManagerImages()->thumbImg($pic->image,'Foto',$pic->comment,'','160','100');
           echo '</span>';
        }
        ?>
        
    </div>
    <div class="span-3"style="text-align: right;">
        <?php
        switch($pet->status)
        {
            case MN_Pets::STATUS_BOYFRIEND:
                ?>
                <a class="button" href="<?php echo $view->url(array('controller'=>'Contact','action'=>'index','petId'=>$pet->id));?>">Contactar</a>
                <?php
            break;
        case MN_Pets::STATUS_ADOPTION:
                 ?>
                <a class="button" href="<?php echo $view->url(array('controller'=>'Contact','action'=>'index','petId'=>$pet->id));?>">Adoptar</a>
                <?php
            break;
        case MN_Pets::STATUS_SALE:
                ?>
                <a class="button" href="<?php echo $view->url(array('controller'=>'Contact','action'=>'index','petId'=>$pet->id));?>">Comprar</a>
                <?php
            break;
        }
        ?>

    </div>

        <?php
    }
    else
    {
        ?> <div class="notice">No se encontro informacion de la mascota.</div><?php 
    }
?>

